<?php
//require('iniciar.php');
$_SESSION['direccion'] = 'pedido.php?isbn='.$_GET['isbn'].'&formato='.$_GET['formato'];
if (isset($_SESSION['logged_in'])) 
{ 

		if(isset($_GET['isbn']))
			 {
			 	echo $_GET['isbn'];
			 	echo $_GET['formato'];
			/* 	$isbn = $_GET['isbn'];
			 	$sql="SELECT *
				from libros where isbn='$isbn'";
		 		$result = $conect->consultar($sql);
		 		if (!$result)
				 {
					echo ('Error en la consulta');
					return;
				 }
				 else 
				 {
				 	 while ($lida= pg_fetch_array($result, null, PGSQL_ASSOC))
					 {
						$libro_datos[$ind]=$lida;
					 }
					 		foreach ($libro_datos as $ind => $valor) 
							{
								
							} 
				 }*/
			 }
?>
	<a href="logout.php?signature=<?php echo $_SESSION['signature']; ?>
	">Logout</a><br />
<?php 
}
else
{
	header("Location: login.php");
} 
?>